package www.bd.com.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchCrudRepository;
import www.bd.com.pojo.Article;

/**
 * @author Berret
 * @date 2019/4/16 15:05
 * @discription :
 */
public interface ArticleDao  extends ElasticsearchCrudRepository<Article,String> {

    public Page<Article> findByTitleOrContentLike(String keywords, Pageable pageable);
}
